package com.book.publishing.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * @Author: 孙鑫
 * @Description:  20173952
 */

@Data
@TableName("publishing_message")
public class BookMessage {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("bookname")
    private String bookname;

    @TableField("type")
    private String type;

    @TableField("bookmoney")
    private Integer bookmoney;

    // 订购数量
    @TableField(exist = false)
    private Integer num;

    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private Date createtime;

    @TableField(value = "updatetime", fill = FieldFill.INSERT_UPDATE)
    private Date updatetime;

    @Version
    @TableField("version")
    private Integer version;
}
